//
//  NSString+VerticalText.m
//  mmbang
//
//  Created by yaodaobin on 2017/2/13.
//  Copyright © 2017年 iyaya. All rights reserved.
//

#import "NSString+VerticalText.h"

@implementation NSString (VerticalText)

- (NSString *)verticalString {
    NSMutableString * str = [[NSMutableString alloc] initWithString:self];
    NSInteger count = str.length;
    for (int i = 1; i < count; i ++) {
        [str insertString:@"\n" atIndex:i*2 - 1];
    }
    return str;
}


@end
